function start() {
    cm.sendYesNo("請問你是否要離開呢??");
}

function action(mode, type, selection) {
    if (mode == 1) {
        var map = cm.getMapId();
        var tomap;

        if (map == 108010101) {
            tomap = 100000000;
        } else if (map == 108010201) {
            tomap = 101000000;
        } else if (map == 108010301) {
            tomap = 102000000;
        } else if (map == 108010401) {
            tomap = 103000000;
        } else if (map == 108010501) {
            tomap = 120000000;
        }
		cm.getMap().killAllMonsters(true);
        cm.warp(tomap);
    }
    cm.dispose();
}